package com.hopu.v1.pojo.course;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 学生课程作业记录表
 * @TableName t_course_homework_record
 */
@TableName(value ="t_course_homework_record")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FCourseHomeworkRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 学生课程作业记录id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 课程作业id
     */
    private Long homeworkId;

    /**
     * 学生id
     */
    private Long studentId;

    /**
     * 学生答案
     */
    private String studentAnswer;

    /**
     * 判断正确(0错误，1正确)
     */
    private Long correctJudgment;

    /**
     * 批改状态(0未批改，1已批改)
     */
    private String correctCondition;

    /**
     * 老师评语
     */
    private String teacherComments;

    /**
     * 连接课程作业表
     */
    private CourseHomework courseHomework;

}